home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / ftplugin / tex.vim < prev    next >
LaTeX Document  |  2001-09-17  |  1.5 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tex.vim

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
99% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 22 20 4c 61 54 65 58 20 | 66 69 6c 65 74 79 70 65 |" LaTeX |filetype|
|00000010| 20 70 6c 75 67 69 6e 0a | 22 20 4c 61 6e 67 75 61 | plugin.|" Langua|
|00000020| 67 65 3a 20 20 20 20 20 | 4c 61 54 65 58 20 28 66 |ge: |LaTeX (f|
|00000030| 74 3d 74 65 78 29 0a 22 | 20 4d 61 69 6e 74 61 69 |t=tex)."| Maintai|
|00000040| 6e 65 72 3a 20 20 20 42 | 65 6e 6a 69 20 46 69 73 |ner: B|enji Fis|
|00000050| 68 65 72 2c 20 50 68 2e | 44 2e 20 3c 62 65 6e 6a |her, Ph.|D. <benj|
|00000060| 69 40 6d 65 6d 62 65 72 | 2e 41 4d 53 2e 6f 72 67 |i@member|.AMS.org|
|00000070| 3e 0a 22 20 4c 61 73 74 | 20 43 68 61 6e 67 65 3a |>." Last| Change:|
|00000080| 20 20 32 30 30 31 20 53 | 65 70 74 20 31 37 0a 0a | 2001 S|ept 17..|
|00000090| 22 20 4f 6e 6c 79 20 64 | 6f 20 74 68 69 73 20 77 |" Only d|o this w|
|000000a0| 68 65 6e 20 6e 6f 74 20 | 64 6f 6e 65 20 79 65 74 |hen not |done yet|
|000000b0| 20 66 6f 72 20 74 68 69 | 73 20 62 75 66 66 65 72 | for thi|s buffer|
|000000c0| 0a 69 66 20 65 78 69 73 | 74 73 28 22 62 3a 64 69 |.if exis|ts("b:di|
|000000d0| 64 5f 66 74 70 6c 75 67 | 69 6e 22 29 0a 20 20 66 |d_ftplug|in"). f|
|000000e0| 69 6e 69 73 68 0a 65 6e | 64 69 66 0a 0a 22 20 44 |inish.en|dif.." D|
|000000f0| 6f 6e 27 74 20 6c 6f 61 | 64 20 61 6e 6f 74 68 65 |on't loa|d anothe|
|00000100| 72 20 70 6c 75 67 69 6e | 20 66 6f 72 20 74 68 69 |r plugin| for thi|
|00000110| 73 20 62 75 66 66 65 72 | 0a 6c 65 74 20 62 3a 64 |s buffer|.let b:d|
|00000120| 69 64 5f 66 74 70 6c 75 | 67 69 6e 20 3d 20 31 0a |id_ftplu|gin = 1.|
|00000130| 0a 6c 65 74 20 73 3a 73 | 61 76 65 5f 63 70 6f 20 |.let s:s|ave_cpo |
|00000140| 3d 20 26 63 70 6f 0a 73 | 65 74 20 63 70 6f 26 76 |= &cpo.s|et cpo&v|
|00000150| 69 6d 0a 0a 22 20 53 65 | 74 20 27 63 6f 6d 6d 65 |im.." Se|t 'comme|
|00000160| 6e 74 73 27 20 74 6f 20 | 66 6f 72 6d 61 74 20 64 |nts' to |format d|
|00000170| 61 73 68 65 64 20 6c 69 | 73 74 73 20 69 6e 20 63 |ashed li|sts in c|
|00000180| 6f 6d 6d 65 6e 74 73 0a | 73 65 74 6c 6f 63 61 6c |omments.|setlocal|
|00000190| 20 63 6f 6d 3d 73 4f 3a | 25 5c 20 2d 2c 6d 4f 3a | com=sO:|%\ -,mO:|
|000001a0| 25 5c 20 5c 20 2c 65 4f | 3a 25 25 2c 3a 25 0a 0a |%\ \ ,eO|:%%,:%..|
|000001b0| 22 20 41 6c 6c 6f 77 20 | 22 5b 64 22 20 74 6f 20 |" Allow |"[d" to |
|000001c0| 62 65 20 75 73 65 64 20 | 74 6f 20 66 69 6e 64 20 |be used |to find |
|000001d0| 61 20 6d 61 63 72 6f 20 | 64 65 66 69 6e 69 74 69 |a macro |definiti|
|000001e0| 6f 6e 3a 0a 22 20 52 65 | 63 6f 67 6e 69 7a 65 20 |on:." Re|cognize |
|000001f0| 70 6c 61 69 6e 20 54 65 | 58 20 5c 64 65 66 20 61 |plain Te|X \def a|
|00000200| 73 20 77 65 6c 6c 20 61 | 73 20 4c 61 54 65 58 20 |s well a|s LaTeX |
|00000210| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 20 61 6e 64 20 |\newcomm|and and |
|00000220| 5c 72 65 6e 65 77 63 6f | 6d 6d 61 6e 64 20 2e 0a |\renewco|mmand ..|
|00000230| 73 65 74 6c 6f 63 61 6c | 20 64 65 66 69 6e 65 3d |setlocal| define=|
|00000240| 5c 5c 5c 5c 64 65 66 5c | 5c 5c 5c 7c 5c 5c 5c 5c |\\\\def\|\\\|\\\\|
|00000250| 5c 5c 28 72 65 5c 5c 29 | 5c 5c 3d 6e 65 77 63 6f |\\(re\\)|\\=newco|
|00000260| 6d 6d 61 6e 64 7b 0a 0a | 22 20 54 65 6c 6c 20 56 |mmand{..|" Tell V|
|00000270| 69 6d 20 68 6f 77 20 74 | 6f 20 72 65 63 6f 67 6e |im how t|o recogn|
|00000280| 69 7a 65 20 4c 61 54 65 | 58 20 5c 69 6e 63 6c 75 |ize LaTe|X \inclu|
|00000290| 64 65 7b 66 6f 6f 7d 20 | 61 6e 64 20 70 6c 61 69 |de{foo} |and plai|
|000002a0| 6e 20 5c 69 6e 70 75 74 | 20 62 61 72 20 3a 0a 73 |n \input| bar :.s|
|000002b0| 65 74 6c 6f 63 61 6c 20 | 69 6e 63 6c 75 64 65 3d |etlocal |include=|
|000002c0| 5c 5c 5c 5c 69 6e 70 75 | 74 5c 5c 5c 5c 7c 5c 5c |\\\\inpu|t\\\\|\\|
|000002d0| 5c 5c 69 6e 63 6c 75 64 | 65 7b 0a 73 65 74 6c 6f |\\includ|e{.setlo|
|000002e0| 63 61 6c 20 69 6e 63 6c | 75 64 65 65 78 70 72 3d |cal incl|udeexpr=|
|000002f0| 54 65 78 49 6e 63 6c 75 | 64 65 45 78 70 72 28 29 |TexInclu|deExpr()|
|00000300| 0a 66 75 6e 21 20 54 65 | 78 49 6e 63 6c 75 64 65 |.fun! Te|xInclude|
|00000310| 45 78 70 72 28 29 0a 20 | 20 22 20 4f 6e 20 73 6f |Expr(). | " On so|
|00000320| 6d 65 20 66 69 6c 65 20 | 73 79 73 74 65 6d 73 2c |me file |systems,|
|00000330| 20 22 7d 22 20 69 73 20 | 69 6e 6c 75 64 65 64 20 | "}" is |inluded |
|00000340| 69 6e 20 27 69 73 66 6e | 61 6d 65 27 2e 20 20 49 |in 'isfn|ame'. I|
|00000350| 6e 20 63 61 73 65 20 74 | 68 65 0a 20 20 22 20 54 |n case t|he. " T|
|00000360| 65 58 20 66 69 6c 65 20 | 68 61 73 20 5c 69 6e 63 |eX file |has \inc|
|00000370| 6c 75 64 65 7b 66 6e 61 | 6d 65 7d 20 28 4c 61 54 |lude{fna|me} (LaT|
|00000380| 65 58 20 6f 6e 6c 79 29 | 2c 20 73 74 72 69 70 20 |eX only)|, strip |
|00000390| 74 68 65 20 22 7d 22 20 | 61 6e 64 0a 20 20 22 20 |the "}" |and. " |
|000003a0| 61 6e 79 20 6f 74 68 65 | 72 20 74 72 61 69 6c 69 |any othe|r traili|
|000003b0| 6e 67 20 63 68 61 72 61 | 63 74 65 72 73 2e 0a 20 |ng chara|cters.. |
|000003c0| 20 6c 65 74 20 66 6e 61 | 6d 65 20 3d 20 73 75 62 | let fna|me = sub|
|000003d0| 73 74 69 74 75 74 65 28 | 76 3a 66 6e 61 6d 65 2c |stitute(|v:fname,|
|000003e0| 20 27 7d 2e 2a 27 2c 20 | 27 27 2c 20 27 27 29 0a | '}.*', |'', '').|
|000003f0| 20 20 22 20 4e 6f 77 2c | 20 61 64 64 20 22 2e 74 | " Now,| add ".t|
|00000400| 65 78 22 20 69 66 20 74 | 68 65 72 65 20 69 73 20 |ex" if t|here is |
|00000410| 6e 6f 20 6f 74 68 65 72 | 20 66 69 6c 65 20 65 78 |no other| file ex|
|00000420| 74 65 6e 73 69 6f 6e 2e | 0a 20 20 69 66 20 66 6e |tension.|. if fn|
|00000430| 61 6d 65 20 21 7e 20 27 | 5c 2e 27 0a 20 20 20 20 |ame !~ '|\.'. |
|00000440| 6c 65 74 20 66 6e 61 6d | 65 20 3d 20 66 6e 61 6d |let fnam|e = fnam|
|00000450| 65 20 2e 20 27 2e 74 65 | 78 27 0a 20 20 65 6e 64 |e . '.te|x'. end|
|00000460| 69 66 0a 20 20 72 65 74 | 75 72 6e 20 66 6e 61 6d |if. ret|urn fnam|
|00000470| 65 0a 65 6e 64 66 75 6e | 0a 0a 22 20 54 68 65 20 |e.endfun|.." The |
|00000480| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 65 73 20 |followin|g lines |
|00000490| 65 6e 61 62 6c 65 20 74 | 68 65 20 6d 61 63 72 6f |enable t|he macro|
|000004a0| 73 2f 6d 61 74 63 68 69 | 74 2e 76 69 6d 20 70 6c |s/matchi|t.vim pl|
|000004b0| 75 67 69 6e 20 66 6f 72 | 0a 22 20 65 78 74 65 6e |ugin for|." exten|
|000004c0| 64 65 64 20 6d 61 74 63 | 68 69 6e 67 20 77 69 74 |ded matc|hing wit|
|000004d0| 68 20 74 68 65 20 25 20 | 6b 65 79 2e 0a 69 66 20 |h the % |key..if |
|000004e0| 65 78 69 73 74 73 28 22 | 6c 6f 61 64 65 64 5f 6d |exists("|loaded_m|
|000004f0| 61 74 63 68 69 74 22 29 | 0a 20 20 6c 65 74 20 62 |atchit")|. let b|
|00000500| 3a 6d 61 74 63 68 5f 69 | 67 6e 6f 72 65 63 61 73 |:match_i|gnorecas|
|00000510| 65 20 3d 20 30 0a 20 20 | 20 20 5c 20 7c 20 6c 65 |e = 0. | \ | le|
|00000520| 74 20 62 3a 6d 61 74 63 | 68 5f 73 6b 69 70 20 3d |t b:matc|h_skip =|
|00000530| 20 27 72 3a 5c 5c 5c 40 | 3c 21 5c 25 28 5c 5c 5c | 'r:\\\@|<!\%(\\\|
|00000540| 5c 5c 29 2a 25 27 0a 20 | 20 20 20 5c 20 7c 20 6c |\\)*%'. | \ | l|
|00000550| 65 74 20 62 3a 6d 61 74 | 63 68 5f 77 6f 72 64 73 |et b:mat|ch_words|
|00000560| 20 3d 20 27 28 3a 29 2c | 5c 5b 3a 5d 2c 7b 3a 7d | = '(:),|\[:],{:}|
|00000570| 2c 5c 5c 28 3a 5c 5c 29 | 2c 5c 5c 5c 5b 3a 5c 5c |,\\(:\\)|,\\\[:\\|
|00000580| 5d 2c 27 20 2e 0a 20 20 | 20 20 5c 20 27 5c 5c 62 |],' .. | \ '\\b|
|00000590| 65 67 69 6e 5c 73 2a 5c | 28 7b 5c 61 5c 2b 5c 2a |egin\s*\|({\a\+\*|
|000005a0| 5c 3d 7d 5c 29 3a 5c 5c | 65 6e 64 5c 73 2a 5c 31 |\=}\):\\|end\s*\1|
|000005b0| 27 0a 65 6e 64 69 66 20 | 22 20 65 78 69 73 74 73 |'.endif |" exists|
|000005c0| 28 22 6c 6f 61 64 65 64 | 5f 6d 61 74 63 68 69 74 |("loaded|_matchit|
|000005d0| 22 29 0a 0a 6c 65 74 20 | 26 63 70 6f 20 3d 20 73 |")..let |&cpo = s|
|000005e0| 3a 73 61 76 65 5f 63 70 | 6f 0a |:save_cp|o. |
+--------+-------------------------+-------------------------+--------+--------+